package org.jeecg.modules.charge.service.impl;

import org.jeecg.entity.basedata.BaseRoom;
import org.jeecg.entity.charge.ChargeFeeRuleRoom;
import org.jeecg.modules.charge.mapper.ChargeFeeRuleMapper;
import org.jeecg.modules.charge.mapper.ChargeFeeRuleRoomMapper;
import org.jeecg.modules.charge.service.IChargeFeeRuleRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 收费规则房间关联表
 * @Author: jeecg-boot
 * @Date:   2021-06-24
 * @Version: V1.0
 */
@Service
public class ChargeFeeRuleRoomServiceImpl extends ServiceImpl<ChargeFeeRuleRoomMapper, ChargeFeeRuleRoom> implements IChargeFeeRuleRoomService {
   @Autowired
    private ChargeFeeRuleMapper chargeFeeRuleMapper;
    @Override
    public List<BaseRoom> getRoomInfo(List<String> roomIds,String feeId) {
        return chargeFeeRuleMapper.getRoomInfo(roomIds,feeId);
    }

    @Override
    public List<BaseRoom> getAllRoomInfo(String projectId) {
        return chargeFeeRuleMapper.getAllRoomInfo(projectId);
    }

    @Override
    public String selectFeeId(String roomId, String feeItemId) {
        return chargeFeeRuleMapper.selectFeeId(roomId,feeItemId);
    }
}
